<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="language" content="en" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/icon/favicon.ico" type="image/x-icon" />
        <!-- blueprint CSS framework -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/home/css.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/home/cssmenu.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/home/buttons.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/home/pager.css" />
        <link href="<?php echo Yii::app()->request->baseUrl; ?>/css/home/menuV2.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/js/jsImgSlider/themes/6/js-image-slider.css" />
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jsImgSlider/themes/6/mcVideoPlugin_1.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jsImgSlider/themes/6/js-image-slider_1.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/home/menuV2.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/home/jquery.countdown.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/skins/tango/skin.css" />

        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/productslider/jquery.jcarousel.min.js"></script>


        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.msgBox/Scripts/jquery.msgBox.js"></script>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.msgBox/Styles/msgBoxLight.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/js/easy_ui/themes/default/easyui.css">
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/js/easy_ui/themes/icon.css">
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/js/easy_ui/demo.css">
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/easy_ui/jquery.min.js"></script>
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/easy_ui/jquery.easyui.min.js"></script>
                <script type="text/javascript" language="javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/media/js/jquery.js"></script>
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/media/js/jquery.dataTables.js"></script>
                <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
           <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/ui/jquery-ui.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                $('a.login-window').click(function() {

                    // Getting the variable's value from a link 
                    var loginBox = $(this).attr('href');

                    //Fade in the Popup and add close button
                    $(loginBox).fadeIn(300);

                    //Set the center alignment padding + border
                    var popMargTop = ($(loginBox).height() + 24) / 2;
                    var popMargLeft = ($(loginBox).width() + 24) / 2;

                    $(loginBox).css({
                        'margin-top': -popMargTop,
                        'margin-left': -popMargLeft
                    });

                    // Add the mask to body
                    $('body').append('<div id="mask"></div>');
                    $('#mask').fadeIn(300);

                    return false;
                });

                // When clicking on the button close or the mask layer the popup closed
                $('a.close, #mask').live('click', function() {
                    $('#mask , .login-popup').fadeOut(300, function() {
                        $('#mask').remove();
                    });
                    return false;
                });
            });
        </script>
    </head>
    <body>
        <?php
        $this->renderPartial('//layouts/Banner_index');
        
        $this->renderPartial('//layouts/header');
        ?>
<div style="width: 100%;padding-top: 64px">
        <div class="noidung">
            <div>
                <div class="colleft">
                    <?php
                    $a = Yii::app()->controller->action->id;
                    $p = Yii::app()->controller->id;
                  
                    if ($p == 'manager' && $a != 'dangky') {
                        $this->renderPartial('//layouts/nabar_canhan');
                    }else if ($p == 'shopmanager' && $a != 'dangky') {
                        $this->renderPartial('//layouts/nabar_canhan');
                    }
                    else if ($a == 'dangky') {

                        $this->renderPartial('//site/commercial');
                    } else {
                        $this->renderPartial('//layouts/nabar_home');
                    }
                    ?>
                    <div style="clear: both"></div>
                </div>

                <div class="colright" style="margin: 0px">
                    <?php echo $content; ?>

                    <div style="clear: both"></div>
                </div>

            </div>
            <div style="clear: both"></div>

        </div>




        <?php
        $this->renderPartial('//layouts/footer');
        ?>


</div>


    </body>
</html>
